module.exports = function(app){
    app.controller('navCtrl', function ($scope, $rootScope) {
        $scope.searchf =function() {
            console.log("call search", $scope.search);
            $rootScope.search = $scope.search;
        }
    });
}